<template>
    <PayInfo @back-to-list="handleBackToList" />
</template>

<script setup lang="ts">
import PayInfo from '@/components/pay/index.vue'
import { useRouter } from 'vue-router'
import useUserStore from '@/stores/modules/user'

const router = useRouter()
const userStore = useUserStore()

const handleBackToList = async () => {
    await userStore.getUserInfoFun()
    router.push('/memorialManage/userInfo')
}
</script>